/**
 * Created by zhangming-1123 on 2017/2/23.
 */
"use strict";

//导包
const express = require('express')
const path = require('path')
//创建路由
const studentmanagerRouter = express.Router()

//导入控制器
const studentmanagerCtrl = require(path.join(__dirname, '../controllers/studentmanagerController.js'))

//处理路由规格
//获取登入界面的路由
studentmanagerRouter.get('/list', studentmanagerCtrl.getStudentPage)
studentmanagerRouter.get('/add', studentmanagerCtrl.getaddStudentPage)
studentmanagerRouter.post('/add', studentmanagerCtrl.setaddStudentPage)
studentmanagerRouter.get('/delete', studentmanagerCtrl.deleteStudentPage)
studentmanagerRouter.get('/edit/:_id', studentmanagerCtrl.geteditStudentPage)
studentmanagerRouter.post('/edit/:_id', studentmanagerCtrl.seteditStudentPage)


// 导出
module.exports = studentmanagerRouter